﻿namespace DeviceAlarmService.Models.ModbusTcp;

public class DeviceAddress
{
    /// <summary>
    /// 设备地址
    /// </summary>
    public string ip { get; set; }

    /// <summary>
    /// 端口
    /// </summary>
    public short port { get; set; } = 502;

    /// <summary>
    ///功能码 
    /// </summary>
    public int functionCode { get; set; }

    /// <summary>
    /// 波特率
    /// </summary>
    public int baudRate { get; set; }

    /// <summary>
    /// 校验位
    /// </summary>
    public int checkBit { get; set; }

    /// <summary>
    /// 数据位
    /// </summary>
    public int dataBits { get; set; }

    /// <summary>
    /// 停止位
    /// </summary>
    public int stopBit { get; set; }
}